from appium.webdriver.common.mobileby import MobileBy

from HomeWork_PO_Apptest_add_and_delete_members.base.base_page import BasePage


class EditMemberPage(BasePage):
    def edit_member(self,name,phone):
        self.driver.find_element(MobileBy.XPATH, '//*[@resource-id="com.tencent.wework:id/bf7"]').send_keys(name)
        self.driver.find_element(MobileBy.XPATH, '//*[@resource-id="com.tencent.wework:id/gge"]').send_keys(phone)
        self.driver.find_element(MobileBy.XPATH, '//*[@resource-id="com.tencent.wework:id/am4"]').click()
        from HomeWork_PO_Apptest_add_and_delete_members.page.addmember_page import AddMemberPage
        return AddMemberPage(self.driver)